<?php

namespace Admin\Controller;

use Think\Controller;

class BaseController extends Controller
{
    protected $pageSize = 10;
    protected $rollPage = 20;

    public function _initialize()
    {
        if (!is_login(C('auth.admin'))) {
            $this->error('请先登录', U('/Admin/Auth/login'));
        }
    }
}